<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title></title>
    <meta charset="utf-8"/>
</head>
<body>
<!--/*@thymesVar id="user" type=""*/-->

<!--<div th:object="${user}">-->
<!--&lt;!&ndash;   选择表达式(星号语法) &ndash;&gt;-->
<!--    <p>Name: <span th:text="*{username}">Sebastian</span>.</p>-->
<!--    <p>Surname: <span th:text="*{address}">Pepper</span>.</p>-->
<!--</div>-->

<!--这里是将数据放入Session然后传到前端使用-->
<!--<p>LoginName: <span th:text="${session.loginUser.username}">Pepper</span>.</p>-->
<!--<h1>this welcome Page </h1>-->
<!--<p th:text="${welcome}">Welcome to our Shenzhen!</p>-->
<!--&lt;!&ndash;  下面是动态路径 &ndash;&gt;-->
<!--<a th:href="@{/getUser}"> 用户页面</a>-->

<!--<a th:href="@{/userInfo(id=${user.id})}"> 用户详细信息</a>-->

<!--<div th:object="${user}">-->
<!--    <p>Name: <span th:text="*{username}">Sebastian</span>.</p>-->
<!--    <p>Surname: <span th:text="*{address}">Pepper</span>.</p>-->
<!--</div>-->
<br/>
<hr/>
<table>
    <tr>
        <th>NAME</th>
        <th>ADDRESS</th>
        <th>Sex</th>
    </tr>
    <tr th:each="user : ${users}">
        <td th:text="${user.username}">Onions</td>
        <td th:text="${user.address}">2.41</td>
        <td th:text="${user.sex}">yes</td>
    </tr>
</table>
</body>
</html>